﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;

namespace FiveInARow.Converters
{
	public class RowLocationConverter : IMultiValueConverter
	{
		#region Methods

		public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
		{
			return ((int)values[0] - 0.5) * Constants.CellWidth + (double)values[1];
		}

		public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
		{
			throw new NotImplementedException();
		}

		#endregion Methods
	}
}
